<script>
import useTitle from "@/hooks/useTitle";

export default {
  name: "App",
  setup(props, context) {
    const title = useTitle("App")
    const changeTitle = () => {
      title.value = "首页"
    }
    return{
      changeTitle
    }
  }

}
</script>
<template>
  <div id="app">
    <button @click="changeTitle">修改title</button>
  </div>
</template>

<style lang="less"></style>
